﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x0200011F RID: 287
	public class TRedshiftVacuum : TCustomSqlStatement
	{
		// Token: 0x0600093A RID: 2362 RVA: 0x003031BB File Offset: 0x003013BB
		public TRedshiftVacuum(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftVacuum;
		}

		// Token: 0x1700019D RID: 413
		// (get) Token: 0x0600093B RID: 2363 RVA: 0x003031CF File Offset: 0x003013CF
		// (set) Token: 0x0600093C RID: 2364 RVA: 0x003031D7 File Offset: 0x003013D7
		public virtual TObjectName TableName
		{
			get
			{
				return this.tableName;
			}
			set
			{
				this.tableName = value;
			}
		}

		// Token: 0x0600093D RID: 2365 RVA: 0x003031E0 File Offset: 0x003013E0
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			if (tdummy.node1 != null)
			{
				this.tableName = (TObjectName)tdummy.node1;
			}
			return 0;
		}

		// Token: 0x0600093E RID: 2366 RVA: 0x00303225 File Offset: 0x00301425
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600093F RID: 2367 RVA: 0x00303235 File Offset: 0x00301435
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400123D RID: 4669
		private TObjectName tableName;
	}
}
